/**
 * 
 */
package org.swing.table.filter;

import org.swing.table.imp.Filter;

/**
 * @author lqnhu
 *
 */

public class SimpleComboBoxFilter extends AbstractComboBoxFilter {
	private final Filter delegate;

	public SimpleComboBoxFilter(Filter delegate) {
		this.delegate = delegate;
		this.getComboBox().setAction(new FilterAction());
	}

	public boolean filter(Object value) {
		return this.delegate.filter(value, this.getComboBox().getSelectedItem());
	}
}
